package com.hopu.comment.server.impl;

import com.hopu.comment.dao.CommentRepository;
import com.hopu.comment.entity.Comment;
import com.hopu.comment.server.CommentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class CommentServiceImpl implements CommentService {

    @Autowired
    private CommentRepository commentRepository;

    /**
     *  查询所有
     * @return
     */
    public List<Comment> findAll(){
        return commentRepository.findAll();
    }
}
